export default {
  // 使存放页面代码的文件夹改为 page
  singular: true,
  plugins: [
    [
      "umi-plugin-react",
      {
        antd: true,
        dva: true,
        locale: {
          enable: true
        }
      }
    ]
  ],
  proxy: {
    "/test": {
      target: "http://114.116.89.193:8999",
      changeOrigin: true
    }
  },
  routes: [
    {
      path: "/",
      component: "../layout",
      routes: [
        {
          path: "/",
          component: "HelloWorld"
        },
        {
          path: "/helloworld",
          component: "HelloWorld"
        },
        {
          path: "/dashboard",
          routes: [
            { path: "/dashboard/analysis", component: "Dashboard/Analysis" },
            { path: "/dashboard/monitor", component: "Dashboard/Monitor" },
            { path: "/dashboard/workplace", component: "Dashboard/Workplace" }
          ]
        },
        { path: "/puzzlecards", component: "Puzzlecards" },
        { path: "/list", component: "list" }
      ]
    }
  ]
};
